﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/functon.master" AutoEventWireup="true" CodeFile="RoomStatus.aspx.cs" Inherits="RoomStatus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <link rel="stylesheet" href="css/admir.css" />
     <link rel="stylesheet" href="css/astyle.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div class="admir_l">
        <br />
        <a href="Add_RoomCategory.aspx">增加房间信息</a><br />
        <a href="Search_RoomCatagory.aspx">查看房间信息</a><br />
        <a href="Update_RoomCategory.aspx">更改房间信息</a><br />
        <a href="Delete_RoomCategory.aspx">删除房间信息</a><br />
        <a href="Customers.aspx">查看客户信息</a><br />
        <a href="RoomCustomer.aspx">查看已住客房信息</a><br />
        <a href="RoomStatus.aspx">查看房间状态 </a>
    </div>
    <div class="admir_r">
            <tr align="right">
                <td >请选择房间类型：
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="RName" DataValueField="RName" Width="120px" Height="30px" BackColor="WhiteSmoke">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HotelManagementConnectionString %>" SelectCommand="SELECT [RName] FROM [HM_RoomDropDownList]"></asp:SqlDataSource>
                </td>
                <td>房间号：
                    <asp:TextBox ID="TextBox1" runat="server" placeholder="请输入房间号！" Height="30px" Width="120px"></asp:TextBox>
                </td>
                <td>房间状态：
                    <asp:TextBox ID="TextBox2" runat="server" placeholder="请输入0或1！" Height="30px" Width="120px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Button ID="Display" runat="server" Text="显示" Width="120px" Height="30px" BackColor="WhiteSmoke" OnClick="Display_Click"/>
                </td>
                <td colspan="2" align="center">
                    <asp:Button ID="Update" runat="server" Text="修改" Width="120px" Height="30px" BackColor="WhiteSmoke" OnClick="Update_Click"/>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
                        <Columns>
                            <asp:BoundField DataField="HM_RCategoryId" HeaderText="房间号" />
                            <asp:BoundField DataField="HM_RArea" HeaderText="房间面积" />
                            <asp:BoundField DataField="HM_RBedNum" HeaderText="床位数" />
                            <asp:BoundField DataField="HM_RPrice" HeaderText="房间价格（元/天）" />
                            <asp:TemplateField>
                            <HeaderTemplate>
                                空调
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("HM_RAirCondition").ToString().Equals("0") ? "有" : "无"%>
                            </ItemTemplate> 
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                有线电视
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("HM_RTV").ToString().Equals("0") ? "有" : "无"%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                房间状态
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("HM_RStatus").ToString().Equals("0") ? "满" : "空"%>
                            </ItemTemplate> 
                        </asp:TemplateField>
                        </Columns> 
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <SortedAscendingCellStyle BackColor="#EDF6F6" />
                        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                        <SortedDescendingCellStyle BackColor="#D6DFDF" />
                        <SortedDescendingHeaderStyle BackColor="#002876" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        </div>
</asp:Content>

